import req from "../../utils/req";

export function registPhone(username, password) {
  console.log(username, password);
  return req({
    method: "POST",
    url: "/register",
    data: `username=${username}&&password=${password}`,
  });
}
export function login(username, password) {
  return req({
    method: "POST",
    url: "/login",
    data: {
      username,
      password,
    },
  });
}
// export function get() {
//   return req({
//     method: "GET",
//     url: `/travelnoteList`,
//     query: {
//       type: "1",
//       limit: "10",
//       page: "1",
//     },
//   });
// }
